package com.springboot.mybatis.mapper;

import com.springboot.mybatis.entity.Passenger;

import java.util.List;

public interface PassengerMapper {
    //嵌套结果映射
	Passenger selectPassengerById(Integer id);
	//嵌套Select查询
	Passenger selectPassengerById2(Integer id);

	//条件查询
	List<Passenger> selectPassengerByCondition(Passenger passenger);

	List<Passenger> selectPassengerByCondition3(Passenger passenger);

	List<Passenger> selectPassengerByCondition4(Passenger passenger);

	void updatePassengerIfNecessary(Passenger passenger);

	List<Passenger> selectPassengersIn(List<Integer> ids);
}